package com.itheima.mongoservice;

import com.itheima.pojo.mongo.UserLocation;
import com.itheima.vo.mongo.UserLocationVo;
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;

import java.util.List;
import java.util.Map;

public interface UserLocationServiceApi {

    Map<String, Double> getUserLocation(Long uid);

    List<Long> getSearchUser(Long uid, Integer distance);

    boolean isLocationExist(Long uid);

    UserLocationVo getUserLocationVo(Long uid);

    void saveAndUpdate(Double longitude, Double latitude, UserLocation userLocation);
}
